﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Irandeb4.Models
{
    public class Order
    {
        public long OrderId { get; set; }
        public int CompanyId { get; set; }

        public List<Item> Items { get; set; }

        [StringLength(150, MinimumLength = 5, ErrorMessage = "la descripción debe ser de minimo 5 cararteres y maximo 150")]
        public string GeneralDescription { get; set; }
        public DateTime OrderDate { get; set; }
        public DateTime OrderExpiration { get; set; }

        public Item ItemToSave { get; set; }
        public Company Company { get; set; }
    }
}